package com.taylor.community;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

public class CommunityServletInitializer extends SpringBootServletInitializer {
    //tomcat访问这个类来作为入口启动项目
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        //声明主配置文件
        return builder.sources(CommunityApplication.class);
    }
}
